package com.qd.common.panda.domain.entity.order;

import com.fasterxml.jackson.databind.node.ArrayNode;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 加油列表显示信息
 *
 * @author sjk
 * @create 2022-10-12 15:40
 * @since 1.0.0
 */
@Data
@ToString
public class OrderGasDTO {

    /**
     * 订单ID
     */
    private String orderId;
    /**
     * 加油站名称
     */
    private String parkName;
    /**
     * 时间
     */
    private LocalDateTime startTime;
    /**
     * 订单金额
     */
    private BigDecimal orderAmount;
    /**
     * 订单金额显示
     */
    private String orderAmountDisplay;
    /**
     * 实际支付金额
     */
    private BigDecimal payAmount;
    /**
     * 实际支付金额显示
     */
    private String payAmountDisplay;
    /**
     * 优惠金额
     */
    private BigDecimal discountAmount;
    /**
     * 优惠金额显示
     */
    private String discountAmountDisplay;
    /**
     * 油号
     */
    private Integer octaneNumber;
    /**
     * 枪号
     */
    private String nozzleNumber;
    /**
     * 加油量
     */
    private BigDecimal oilVolume;
    /**
     * 订单分类
     */
    private Integer orderType;
    /**
     * 订单分类显示
     */
    private String orderTypeDisplay;
    /**
     * 加油站公司ID
     */
    private String gasStationCompanyId;
    /**
     * 加油站公司名称
     */
    private String gasStationCompanyName;
    /**
     * 优惠记录
     */
    private ArrayNode preferentialList;

    public void freeData() {
        this.orderId = null;
        this.parkName = null;
        this.startTime = null;
        this.orderAmount = null;
        this.orderAmountDisplay = null;
        this.payAmount = null;
        this.payAmountDisplay = null;
        this.octaneNumber = null;
        this.nozzleNumber = null;
        this.oilVolume = null;
        this.orderType = null;
        this.orderTypeDisplay = null;
        this.preferentialList = null;
        this.discountAmount = null;
        this.discountAmountDisplay = null;
        this.gasStationCompanyId = null;
        this.gasStationCompanyName = null;
    }
}